<?php

class a {
	protected $p;
	
	public function echop() {
		echo $this->p;
	}
}

class b extends a {
	public function __construct() {
		$this->p = true;
	}
}

$c = new b();
$c->echop();

?>